package cn.itcast.io.a.file.digui;

public class DiGuiDemo {

    public static void main(String[] args) {

        System.out.println(getSum(100));
    }

    private static int getSum(int i) {
        if(i == 1){
            return 1;
        }
        return i + getSum(i-1);
    }
}
